package model

import "go.mongodb.org/mongo-driver/bson/primitive"

//筛分记录
type ScreeningRecord struct {
	Id              primitive.ObjectID `bson:"_id,omitempty" json:"_id" form:"_id"`
	Batch_Number    string             `bson:"batch_number" binding:"required" form:"batch_number" json:"batch_number"`
	Stipulate_Time  string             `bson:"stipulate_time"  form:"stipulate_time" json:"stipulate_time"` //前端规定时间
	Norms           string             `bson:"norms" binding:"required" form:"norms" json:"norms"`
	Production_Name string             `bson:"production_name" binding:"required" form:"production_name" json:"production_name"`
	Granularity     []struct {
		Granularity_Size string `bson:"granularity_size" form:"granularity_size" json:"granularity_size"`
		Weight           int    `bson:"weight" json:"weight" form:"weight"`
	} `bson:"granularity" json:"granularity" form:"granularity"` //筛分颗粒度
	Loss            float32 `bson:"loss" json:"loss" form:"loss"`
	Desc            string  `bson:"desc" form:"desc" json:"desc"`
	Handover_Person string  `bson:"handover_person" form:"handover_person" json:"handover_person"`
	Successor       string  `bson:"successor" form:"successor" json:"successor"`
	Creator         string  `bson:"creator" json:"creator" form:"creator"`       //创建者
	CreatedAt       string  `bson:"createdAt" json:"createdAt" form:"createdAt"` //后端生成时间
	Describe        string  `bson:"describe" json:"describe" form:"describe"`    //描述
}
